package com.pz.gulimall.common.constant;

import lombok.Getter;

public class MQConstant {
    public static final String orderReleaseOtherRoutingKey = "order.release.other.#";

    @Getter
    public enum MQStatus {
        CREATE(0, "新建"),
        SENDED(1,"已发送"),
        REACH_FAILED(2, "错误抵达"), //（没有抵达mq服务器）
        REACHED(3, "已抵达");

        private final Integer code;
        private final String msg;

        MQStatus(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
